package day02;

public class Lianxi {
    public static void main(String[] args) {

        int a1 = 5 ;
        long a2 = 10 ;
        double a3 = 1.0 ;

        boolean a4 = a1+a2 >= 15;
        System.out.println( a4 );
        boolean a5 = a1+a2 > 15;
        System.out.println( a5 );

        int b1 = 5 ;
        long b2 = b1 ;
        double b3 = b2 ;

        long b4 = (long)b3 ;
        int b5 = (int)b4 ;

        char c1 = '女';
        char c2 = '人';
        System.out.println( c1 );
        System.out.println( c2 );

        int d1 = 5 ;
        long d2 = 10L ;
        double d3 = 15.0 ;
        float d4 = 16.0F ;

        d1 = (int)d2 + (int)d3;
        System.out.println( d1 );

        d2 = d1 + (long)d3 ;
        System.out.println( d2 );

        d3 = d1 + d2 ;
        System.out.println( d3 );

        d4 = d1 + d2 + (float)d3 ;
        System.out.println( d4 );

        byte o1 = 5 ;
        byte o2 = 6 ;
        byte o3 = (byte) ( o1 + o2 ) ;
        System.out.println( o3 );

        System.out.println( 2 + 2 );
        System.out.println( 2 + '2' );
        System.out.println( '2' + '2' );
        System.out.println( (int) '2' );
        System.out.println( '2' );

        double p1 = 0.0 ;
        p1 = p1 + 5000 ;
        System.out.println( p1 );

        double p2 = 5000.0 ;
        p2 = p1 + p2 ;
        System.out.println( p2 );

        double p3 ;
        p3 = p2 - 500 ;
        System.out.println( p3 );
    }
}
